package com.hongyan.base;

import com.hongyan.config.MainFrameConfig;

import javax.swing.*;

public abstract class BaseContentJpanel extends JPanel {

    public BaseContentJpanel() {
        initComponents();

        setBounds(0, 0, 700, 600);

        initListen();
    }

    public abstract void initComponents();

    public abstract void initData();

    public abstract void initListen();

    public void showToast(String msg) {
        JOptionPane.showMessageDialog(MainFrameConfig.getSwingMainFrame(), msg);
    }
}

